﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Mindfor.Web.Modules.Users
{
	/// <summary>
	/// Contains model data to authenticate by e-mail.
	/// </summary>
	public class AuthenticateEmailModel : AuthenticateModel
	{
		/// <summary>
		/// Gets or sets user login.
		/// </summary>
		[DisplayName("E-mail")]
		[Required(ErrorMessage="Введите e-mail")]
		[StringLength(255, ErrorMessage="E-mail должен быть не длиннее 255 символов")]
		[RegularExpression(RegexConsts.EmailRegex, ErrorMessage="Введите корректный e-mail")]
		public override string Identity { get; set; }
	}
}
